package com.study.modules.sys.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.study.modules.sys.model.entity.SysRole;
import com.study.modules.sys.model.entity.SysUserRole;

import java.util.List;
import java.util.Set;

/**
 * @Author Mr.Du
 * @Date 2021/10/16 10:49
 */
public interface SysUserRoleService extends IService<SysUserRole> {

    Set<String> selectUserRole(Long userId);

    List<SysRole> selectRoleListByUserId(Long userId);

    Boolean insertOrUpdate(Long userId, List<Long> roleIdList);

    Boolean deleteUserRoleByRoleId(Long roleId);

    Boolean deleteUserRoleByUserId(Long userId);
}
